<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "lydb_user".
 *
 * @property integer $id
 * @property string $lydb_id
 * @property integer $mobile
 * @property string $password
 * @property string $data
 * @property string $token
 * @property integer $create_time
 */
class LydbUser extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'lydb_user';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['lydb_id', 'mobile', 'password'], 'required'],
            [['create_time'], 'integer'],
            [['data'], 'string'],
            [['mobile'], 'string','max'=>25],
            [['lydb_id', 'password','token'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'lydb_id' => 'Lydb ID',
            'mobile' => 'Mobile',
            'password' => 'Password',
            'data' => 'Data',
            'create_time' => 'Create Time',
        ];
    }


}
